home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / QuickTime VR / MacOS / QuickDraw™ 3D 1.0.6F4 SDK / Samples / SampleCode / Tumbler and Podium / Tumbler_globals.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-05-31  |  2.1 KB  |  106 lines  |  [TEXT/MPS ]

  1. /*
  2.  *
  3.  *        Tumbler_globals.h
  4.  *
  5.  *        Global variables and constants.
  6.  *        
  7.  *
  8.  *        Author:        Nick Thompson & Pablo Fernicola, with thanks to the QuickDraw 3D team
  9.  *        Date:        Monday, January 20, 1992
  10.  *
  11.  *        Copyright © 1992-95  Apple Computer, Inc.
  12.  *
  13.  */
  14.  
  15. #ifndef __globals_def
  16.  
  17. #define __globals_def
  18. #include <Types.h>
  19. #include <TextEdit.h>
  20. #include <Controls.h>
  21. #include <Files.h>
  22. #include <CursorCtl.h>
  23. #include <CursorDevices.h>
  24. #include <Drag.h>
  25. #include <Windows.h>
  26. #include <ToolUtils.h>
  27. #include <TextUtils.h>
  28. #include <Dialogs.h>
  29. #include <StandardFile.h>
  30. #include <Errors.h>
  31. #include <Menus.h>
  32. #include <Scrap.h>
  33. #include <Fonts.h>
  34.  
  35. #include <QuickDraw.h>
  36. #include <QDOffscreen.h>
  37.  
  38. //#define ESCHER_VER_15    1
  39.  
  40. #include "QD3D.h"
  41. #include "QD3DGroup.h"
  42. #include "QD3DDrawContext.h"
  43. #include "QD3DView.h"
  44. #include "QD3DGroup.h"
  45.  
  46. /*
  47.  *    Window Constants.
  48.  */
  49.  
  50. #define    MaxDocumentCount        8
  51.  
  52. #define    InitialH                16
  53. #define    InitialV                42
  54.  
  55. #define    TopMargin                6
  56. #define    LeftMargin                6
  57. #define    RightMargin                6
  58. #define    BottomMargin            6
  59.  
  60. #define    ScrollResolution        12
  61.  
  62.  
  63. /*
  64.  *    File Constants.
  65.  */
  66.  
  67. #define    FileCreator                '3dmf'
  68. #define    FileType                'TEXT'
  69.  
  70.  
  71.  
  72.  
  73. /*
  74.  *    Global Variables.
  75.  *
  76.  *    If the flag _AllocateGlobals_ is defined then "extern" is defined as NULL.
  77.  *    This makes the following definitions actually declare the variables,
  78.  *    otherwise, the variables are declared as extern. This scheme allows all
  79.  *    files to include this file to gain access to the program's global variables
  80.  *    and also allows the main.c file to define them.
  81.  */
  82.  
  83. #ifdef    _AllocateGlobals_
  84. #define    extern
  85. #endif
  86.  
  87. #include "Tumbler_Document.h"
  88.  
  89. extern    short            gQuit, gQuitting;
  90. extern    short            gDocumentCount;
  91. extern    DocumentPtr gDocumentList[MaxDocumentCount];
  92. extern    short            gFontItem, gSizeItem;
  93. extern    short            gInBackground;
  94. extern    DocumentPtr gFrontDocument;
  95. extern    short            gCanUndoDrag;
  96. extern    WindowPtr        gUndoFrontmost, gLastFrontmost;
  97.  
  98. extern    Boolean            gUsingHardware ;        // since we do not currently have a way of 
  99.                                                 // determining the rasterizer being used, use this
  100.  
  101.  
  102. #ifdef    _AllocateGlobals_
  103. #undef    extern
  104. #endif
  105.  
  106. #endif